/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.gateway.mqtt.server.controller.form;

import jakarta.validation.constraints.NotEmpty;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(MqttServerControllerForm)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/7/23
 */
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class MqttServerControllerForm {
    /** 主题 */
    @NotEmpty
    String topic;
    /** 客户端Id */
    @NotEmpty
    String clientId;
    /** 消息体 */
    @NotEmpty
    String body;
    /** 传递对象 */
    String messageClass;
}